Update igc.cc with new Header type S (#446)
authorrolfoz <rolf@rolf.id.au>
Mon, 23 Dec 2019 14:38:22 +0000 (22:38 +0800)
committertsteven4 <13596209+tsteven4@users.noreply.github.com>
Mon, 23 Dec 2019 14:38:22 +0000 (07:38 -0700)
Add the new Header type S to allowed values on line 308

igc.cc

diff --git a/igc.cc b/igc.cc
index f65c8bc3da4c2bc8015543f62380e99948b54c0c..f41acd666e94e6051b30aec612675592ca540fc8 100644 (file)
--- a/igc.cc
+++ b/igc.cc
@@ -305,7 +305,7 @@ static void data_read()
 
     case rec_header:
       // Get the header sub type
-      if (sscanf(ibuf, "H%*1[FOP]%3s", tmp_str) != 1) {
+      if (sscanf(ibuf, "H%*1[FOPS]%3s", tmp_str) != 1) {
         fatal(MYNAME ": header (H) record parse error\n%s\n%s\n", ibuf, tmp_str);
       }
       // Optional long name of record sub type is followed by a